<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<script type="text/javascript">
    var appStockLogDataGrid;

    $(function() {
        appStockLogDataGrid = $('#appStockLogDataGrid').datagrid({
            url : '${path }/appStockLog/dataGrid',
            striped : true,
            rownumbers : true,
            pagination : true,
            singleSelect : true,
            idField : 'id',
            sortName : 'id',
            sortOrder : 'asc',
            pageSize : 20,
            pageList : [ 10, 20, 30, 40, 50, 100, 200, 300, 400, 500 ],
            frozenColumns : [ [ {
                width : '40',
                title : 'id',
                field : 'id',
                sortable : true,
                hidden : true
            },  {
                width : '300',
                title : '商品名称',
                field : 'goodsName',
                sortable : true
            }, {
                width : '100',
                title : '商品价格',
                field : 'goodsPrice'
            } ,{
                width : '200',
                title : '改前库存',
                field : 'exAmount'
            },{
                width : '150',
                title : '创建时间',
                field : 'createTime'
            },]]
        });
    });

</script>
<div class="easyui-layout" data-options="fit:true,border:false">
    <div data-options="region:'center',fit:true,border:false">
        <table id="appStockLogDataGrid" data-options="fit:true,border:false"></table>
    </div>
</div>
